home *** CD-ROM | disk | FTP | other *** search
- function getIFlashPaper()
- {
- return gMainView;
- }
- function isFlashPaperDocument()
- {
- return true;
- }
- function getViewerType()
- {
- return gMainView.getViewerType();
- }
- function getViewerVersion()
- {
- return gMainView.getViewerVersion();
- }
- function getCurrentPage()
- {
- return gMainView.getCurrentPage();
- }
- function setCurrentPage(pageNumber)
- {
- gMainView.setCurrentPage(pageNumber);
- }
- function getNumberOfPages()
- {
- return gMainView.getNumberOfPages();
- }
- function getLoadedPages()
- {
- return gMainView.getLoadedPages();
- }
- function showPrevNextUI(flag)
- {
- gMainView.showUIElement("PrevNext",flag);
- }
- function showPrintUI(flag)
- {
- gMainView.showUIElement("Print",flag);
- }
- function printTheDocument()
- {
- return gMainView.printTheDocument();
- }
- function showZoomUI(flag)
- {
- gMainView.showUIElement("Zoom",flag);
- }
- function setCurrentZoom(percent)
- {
- gMainView.setCurrentZoom(percent);
- }
- function getCurrentZoom()
- {
- return gMainView.getCurrentZoom();
- }
- function setSize(w, h)
- {
- if(!gMainView)
- {
- return false;
- }
- return gMainView.setSize(w,h);
- }
- function onPageChanged(newPageNumber)
- {
- }
- function onZoomChanged(percent)
- {
- }
- var gMainView;
- var fpLocalizations_o = null;
- var INITIAL_PAGE = INITIAL_PAGE != undefined ? INITIAL_PAGE : "1";
- var INITIAL_VIEW = INITIAL_VIEW != undefined ? INITIAL_VIEW : "width";
- var HANDHELD = HANDHELD != undefined ? HANDHELD : getVersion().indexOf("WINCE") != -1;
- var SCREEN_DPI = SCREEN_DPI != undefined ? SCREEN_DPI : "96";
- var SEARCH_TO_TOP = SEARCH_TO_TOP != undefined ? SEARCH_TO_TOP : "true";
- var POPUP_ENABLED = POPUP_ENABLED != undefined ? POPUP_ENABLED : "true";
- if(System.capabilities.language == "ko" || System.capabilities.language == "ja")
- {
- FlashPaper.Utils.UISMALLFONTSIZE = FlashPaper.Utils.UIFONTSIZE;
- }
- if(UIFONT != undefined)
- {
- FlashPaper.Utils.UIFONT = UIFONT;
- }
- if(UISMALLFONTSIZE != undefined)
- {
- FlashPaper.Utils.UISMALLFONTSIZE = parseInt(UISMALLFONTSIZE);
- }
- if(UIFONTSIZE != undefined)
- {
- FlashPaper.Utils.UIFONTSIZE = parseInt(UIFONTSIZE);
- }
- if(totalPages == undefined)
- {
- totalPages = 100;
- documentWidth = 2550;
- documentHeight = 3300;
- dpi = 300;
- }
- if(gMainView === undefined)
- {
- fpLocalizations_o = new Object();
- fpLocalizations_o.en = new FlashPaper.Localization.English();
- fpLocalizations_o.de = new FlashPaper.Localization.German();
- fpLocalizations_o.fr = new FlashPaper.Localization.French();
- fpLocalizations_o.ja = new FlashPaper.Localization.Japanese();
- fpLocalizations_o.es = new FlashPaper.Localization.Spanish();
- fpLocalizations_o.it = new FlashPaper.Localization.Italian();
- fpLocalizations_o.ko = new FlashPaper.Localization.Korean();
- gMainView = new FlashPaper.MainView(this);
- gMainView.addListener(this);
- }
-